package com.daka.service.impl;

import com.daka.dao.WelfareItemMapper;
import com.daka.dao.WelfareMapper;
import com.daka.entity.Welfare;
import com.daka.entity.WelfareItem;
import com.daka.service.WelfareItemService;
import com.daka.service.WelfareService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * @author beliveli on 2016/3/31 0031.
 */
@Service("welfareItemService")
@SuppressWarnings("unused")
public class WelfareItemServiceImpl implements WelfareItemService {

    @Resource
    private WelfareItemMapper welfareItemMapper;

    public WelfareItem selectById(Long id) {
        return welfareItemMapper.selectById(id);
    }

    public List<WelfareItem> selectByWelfareId(Long id,String code) {
        return welfareItemMapper.selectByWelfareId(id,code);
    }

    public int insertBatch(List<WelfareItem> welfareItemList) {
        return welfareItemMapper.insertBatch(welfareItemList);
    }

    public int updateById(WelfareItem welfareItem) {
        return welfareItemMapper.updateById(welfareItem);
    }
}
